package com.xyc.javase.stringtest;

/**
 * @Version 1.0
 * @Author:徐衍程
 * @Date:2022/4/6
 * @Content:
 */
public class StringEquals {

    public static void main(String[] args) {
        //string == 和 equals
        String platformid = "H5";
        testEquals(platformid);

    }

    private static void testEquals(String platformid) {
        platformid = platformid == "H5" ? "js":platformid;
        System.out.println(platformid);//js

    }
}
